home *** CD-ROM | disk | FTP | other *** search
- package koala.dynamicjava.tree;
-
- import koala.dynamicjava.tree.visitor.Visitor;
-
- public class SynchronizedStatement extends Statement {
- public static final String LOCK = "lock";
- public static final String BODY = "body";
- private Expression lock;
- private Node body;
-
- public Expression getLock() {
- return this.lock;
- }
-
- public void setLock(Expression var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("e == null");
- } else {
- ((Node)this).firePropertyChange("lock", this.lock, this.lock = var1);
- }
- }
-
- public Node getBody() {
- return this.body;
- }
-
- public void setBody(Node var1) {
- if (var1 == null) {
- throw new IllegalArgumentException("node == null");
- } else {
- ((Node)this).firePropertyChange("body", this.body, this.body = var1);
- }
- }
-
- public Object acceptVisitor(Visitor var1) {
- return var1.visit(this);
- }
-
- public SynchronizedStatement(Expression var1, Node var2, String var3, int var4, int var5, int var6, int var7) {
- super(var3, var4, var5, var6, var7);
- if (var1 == null) {
- throw new IllegalArgumentException("lock == null");
- } else if (var2 == null) {
- throw new IllegalArgumentException("body == null");
- } else {
- this.lock = var1;
- this.body = var2;
- }
- }
- }
-